var rootPath = getRootPath();

$(document).ready(function(){
	
	var naiId = getQueryParamValue("naiId");
	
	
	
	$.ajax({
		method : 'get',
		url : rootPath+'/wechat/api/subscribtion/news/content?naiId='+naiId,
		async:false,
		error:function(XMLHttpRequest, ajaxOptions, thrownError){
			alert("连接服务器错误!");
		},
		success : function(resultData){
			
			if(resultData!=undefined && resultData!=''){
				
				$("#subscribeIViewContent").html(resultData.content);
				
				$("img").each(function(){
					
					$(this).addClass("img-responsive")
				});
				
				
			}
			
			
		}
	});

});